/*******************************************************\
|* Author: Trevor Sundberg
\*******************************************************/

// Includes
#include "SkugoMemberBinding.hpp"

namespace Skugo
{
  // Add a member to a type
  AttributeContainer& MemberBinding::Add(vector<MemberInfo>& list, const char* name, const TypeInfo* type, InvokerFn get, InvokerFn set)
  {
    // Create the member 
    MemberInfo member;
    member.Name = name;
    member.Type = type;
    member.Get = get;
    member.Set = set;

    // Push it onto the list
    list.push_back(member);
    return list.back();
  }
}
